package com.example.guiguihomemedical.service.impl;

import com.example.guiguihomemedical.entity.PersonalInfo;
import com.example.guiguihomemedical.mapper.PersonalInfoMapper;
import com.example.guiguihomemedical.service.PersonalInfoService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonalInfoServiceImpl implements PersonalInfoService {
    @Autowired
    private PersonalInfoMapper personalInfoMapper;
    @Override
    public PersonalInfo getPersonalInfo(String idcard) {
        return personalInfoMapper.getByIdcard(idcard);
    }
    @Override
    public void instrtPersonalInfo(PersonalInfo personalInfo){
        personalInfoMapper.instrtPersonalInfo(personalInfo);
    }
    @Override
    public void updataPersonalInfo(PersonalInfo personalInfo){
        personalInfoMapper.updataPersonalInfo(personalInfo);
    }
}
